<include target="header.html" />

<div class="xe-ui-panel">
	<div class="xe-ui-panel-content cleared">
		<form class="form">
			<table class="xe-ui-table" cellpadding="0" cellspacing="0">
				<caption>
					<p class="f-left">Total: {number_format($total_count)}, Page: {number_format($page)}/{number_format($total_page)}</p>
					<span class="f-right">
						<a class="xe-ui-button-gray" href="{getUrl('act','dispBoardAdminInsertBoard','module_srl','')}">{$lang->cmd_create_board}</a>
						<a class="xe-ui-button-gray" href="#manageSelectedModule" class="modalAnchor">{$lang->cmd_manage_selected_board}</a>
					</span>
					</p>
					<br />
				</caption>
				<thead>
					<tr>
						<th scope="col">{$lang->no}</th>
						<th scope="col">{$lang->module_category}</th>
						<th scope="col">{$lang->mid}</th>
						<th scope="col">{$lang->browser_title}</th>
						<th scope="col">{$lang->regdate}</th>
						<th scope="col">{$lang->cmd_setup}</th>
						<th scope="col">{$lang->cmd_copy}</th>
						<th scope="col">{$lang->cmd_delete}</th>
						<th scope="col"><input type="checkbox" onclick="checkAllPrettyCheckboxes(jQuery(this),jQuery(this).closest('table').find('tbody'))" title="Check All" /></th>
					</tr>
				</thead>
				<!--
				<tfoot>
					<tr>
						<th scope="col">{$lang->no}</th>
						<th scope="col">{$lang->module_category}</th>
						<th scope="col">{$lang->mid}</th>
						<th scope="col">{$lang->browser_title}</th>
						<th scope="col">{$lang->regdate}</th>
						<th scope="col">{$lang->cmd_setup}</th>
						<th scope="col">{$lang->cmd_copy}</th>
						<th scope="col">{$lang->cmd_delete}</th>
						<th scope="col"><input type="checkbox" onclick="checkAllPrettyCheckboxes(jQuery(this),jQuery(this).closest('table').find('tbody'))" title="Check All" /></th>
					</tr>
				</tfoot>
				-->
				<tbody>
					<tr loop="$board_list => $no,$val">
						<td>{$no}</td>
						<td>
							<block cond="!$val->module_category_srl">
								<block cond="$val->site_srl">{$lang->virtual_site}</block>
								<block cond="!$val->site_srl">{$lang->not_exists}</block>
							</block>
							<block cond="$val->module_category_srl">{$module_category[$val->module_category_srl]->title}</block>
						</td>
						<td>{$val->mid}</td>
						<td><a href="{getSiteUrl($val->domain,'','mid',$val->mid)}" target="_blank">{$val->browser_title}</a></td>
						<td>{zdate($val->regdate,"Y-m-d")}</td>
						<td class="center"><a class="xe-ui-button-gray" href="{getUrl('act','dispBoardAdminBoardInfo','module_srl',$val->module_srl)}" title="{$lang->cmd_setup}">{$lang->cmd_setup}</a></td>
						<td class="center"><a class="xe-ui-button-gray" href="{getUrl('','module','module','act','dispModuleAdminCopyModule','module_srl',$val->module_srl)}" onclick="popopen(this.href);return false;" title="{$lang->cmd_copy}">{$lang->cmd_copy}</a></td>
						<td class="center"><a class="xe-ui-button-gray" href="{getUrl('act','dispBoardAdminDeleteBoard','module_srl', $val->module_srl)}" title="{$lang->cmd_delete}">{$lang->cmd_delete}</a></td>
						<td class="center"><input type="checkbox" id="cart_{$val->module_srl}" name="cart" value="{$val->module_srl}" class="selectedModule" data-mid="{$val->mid}" data-browser_title="{$val->browser_title}" /></td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>

	<div class="xe-ui-panel-controller">
		<!--
        <hr />
        <p class="center">
			<a class="xe-ui-button-gray" href="{getUrl('act','dispBoardAdminInsertBoard','module_srl','')}">{$lang->cmd_create_board}</a>
			<a class="xe-ui-button-gray" href="#manageSelectedModule" class="modalAnchor">{$lang->cmd_manage_selected_board}</a>
		</p>
		-->
		<hr />
		<p class="center">
                <a href="{getUrl('page', '')}" class="xe-ui-button-gray pagination first"><img src="{getFullUrl()}common/img/pagination_left.png"/></a>
	            <block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
	                {@$isGoTo = true}
	                <a href="{getUrl('page', '')}" class="xe-ui-button-gray pagination">1</a>
	                <a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
	            </block>
	            <!--@while($page_no = $page_navigation->getNextPage())-->
	            {@$last_page = $page_no}
	            <a href="#" cond="$page_no == $page" class="xe-ui-button-gray pagination disabled">{$page_no}</a>
	            <a cond="$page_no != $page" href="{getUrl('page', $page_no)}" class="xe-ui-button-gray pagination">{$page_no}</a>
	            <!--@end-->
	            <block cond="$last_page != $page_navigation->last_page">
	                {@$isGoTo = true}
	                <a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
	                <a href="{getUrl('page', $page_navigation->last_page)}" class="xe-ui-button-gray pagination">{$page_navigation->last_page}</a>
	            </block>
	            <a href="{getUrl('page', $page_navigation->last_page)}" class="xe-ui-button-gray pagination last"><img src="{getFullUrl()}common/img/pagination_right.png"/></a>
		</p>
	</div>
	<!--
		<div class="search">

			<form action="" class="pagination">
				<input type="hidden" name="error_return_url" value="" />
				<input type="hidden" name="module" value="{$module}" />
				<input type="hidden" name="act" value="{$act}" />
				<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
				<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />

				<a href="{getUrl('page', '')}" class="direction">&laquo; FIRST</a>
				<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
					{@$isGoTo = true}
					<a href="{getUrl('page', '')}">1</a>
					<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
				</block>
				<!--@while($page_no = $page_navigation->getNextPage())-->
					{@$last_page = $page_no}
					<strong cond="$page_no == $page">{$page_no}</strong>
					<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
				<!--@end-->
				<block cond="$last_page != $page_navigation->last_page">
					{@$isGoTo = true}
					<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
					<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
				</block>
				<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST &raquo;</a>
				<span cond="$isGoTo" id="goTo" class="tgContent">
					<input name="page" title="{$lang->cmd_go_to_page}" />
					<button type="submit">Go</button>
				</span>
			</form>

			<form action="./" method="get" class="adminSearch" onsubmit="return checkSearch(this)" no-error-return-url="true">
			<input type="hidden" name="module" value="{$module}" />
			<input type="hidden" name="act" value="{$act}" />
			<input type="hidden" name="error_return_url" value="" />
				<select  cond="count($module_category)"name="module_category_srl">
					<option value="">{$lang->module_category}</option>
					<option value="0" selected="selected"|cond="$module_category_srl==='0'">{$lang->not_exists}</option>
					<option value="{$key}" loop="$module_category => $key,$val"  selected="selected"|cond="$module_category==$key">{$val->title}</option>
				</select>
				<select name="search_target">
					<option value="">{$lang->search_target}</option>
					<option value="mid" selected="selected"|cond="$search_target=='mid'">{$lang->mid}</option>
					<option value="browser_title" selected="selected"|cond="$search_target=='browser_title'">{$lang->browser_title}</option>
				</select>
				<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" />
				<input type="submit" value="{$lang->cmd_search}" />
				<a href="{getUrl('', 'module', $module, 'act', $act)}">{$lang->cmd_cancel}</a>
			</form>
		</div>

		<include target="../../module/tpl/include.manage_selected.html" />
		-->
	</div>
</div>